package com.system.mapper;

import com.system.pojo.complaininfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ComplainMapper {
    @Select({
            "<script>",
            "SELECT * FROM complaininfo",
            "<where>",
            "<if test='ownerId != null'>",
            "Owner_ID = #{ownerId}",
            "</if>",
            "</where>",
            "</script>"
    })
    List<complaininfo> list(Integer ownerId);


}